package day2;

/**
 * @author joker
 * @date 2022/4/13 0013 - 3:02
 */
public class Person implements Intet02.In{
    public Person() {
    }

    private String name;
    public static int id=1;

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static int getId() {
        return id;
    }

    public static void setId(int id) {
        Person.id = id;
    }

    public static void main(String[] args) {
        Person zs = new Person("张三");
        Person ls = new Person("李四");
        System.out.println(zs.getName());
        System.out.println(zs.getId());
        zs.setId(2);
        System.out.println(ls.getName());
        System.out.println(ls.getId());
        System.out.println(Person.id);

        Person.id=3;
        System.out.println(Person.id);
        System.out.println(zs.getId());
        System.out.println(ls.getId());
        int aa=new Integer(2);
        int bb=Integer.valueOf(3);
        System.out.println(aa);
        System.out.println(bb);
    }
    public Brain getBrain(){
        return new Brain();
    }
    final class Brain{
        int i=333;
    }


}

